home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IIS Admin Info.xpl < prev    next >
Text File  |  2002-12-05  |  1KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\Internet Information Server\System"
  5. "NAME"="Admin Information"
  6. "VERSION"="1.17"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Name"
  9. "TEXT 2"="EMail"
  10. "DESCRIPTION 1"="Use this plug-in to change the information of the administrator of this server."
  11. "DESCRIPTION 2"="NOTE: This settings also affect Personal Web Server (PWS)."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16.  
  17.  
  18. sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
  19. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  20. Sub Plugin_Initialize 
  21.  if RegPathExists(spC) then
  22.   s=RegReadValue(sp&"AdminName")
  23.   SetUIElement 1,s
  24.  
  25.   s=RegReadValue(sp&"AdminEmail")
  26.   SetUIElement 2,s
  27.  else
  28.   Disable
  29.  end if
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  s=GetUIElement(1)
  37.  Call RegWriteValue(sp&"AdminName",s,1)
  38.  
  39.  s=GetUIElement(2)
  40.  Call RegWriteValue(sp&"AdminEmail",s,1)
  41. End Sub
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.